package com.jianzong.lingxuan.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 邮件表
 * @author lwl
 * @since 2021-07-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sect_email")
public class SectEmail implements Serializable {

    private static final long serialVersionUID=1L;

    private Integer id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 发件人
     */
    private Integer sendUserId;

    /**
     * 发件人昵称
     */
    @TableField(exist = false)
    private String sendNickName;

    /**
     * 邮件内容
     */
    private String emailContext;

    /**
     * 邮件附件
     */
    private String emailEnclosure;

    /**
     * 发件时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date emailTime;

    /**
     * 是否已读（0未读 1已读）
     */
    private Integer isRead;

    /**
     * 是否删除  
     */
    private Integer isValid;


}
